package com.lnu_devteam.zongce.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lnu_devteam.zongce.common.PageRequest;
import com.lnu_devteam.zongce.model.dto.ScoreIncreaseDTO;
import com.lnu_devteam.zongce.model.entity.Score;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lnu_devteam.zongce.model.vo.ScoreVO;

import javax.servlet.http.HttpServletRequest;

/**
* @author xbaoziplus
* @description 针对表【tb_score(分数表)】的数据库操作Service
* @createDate 2023-03-23 11:48:19
*/
public interface ScoreService extends IService<Score> {

    boolean audit(Long scoreId, int auditStatus, String reason, HttpServletRequest request);

    Page<ScoreVO> pageScoreApply(PageRequest pageRequest, String pageType, String scoreType, String changeType);

    boolean recallScoreApply(Long scoreId, HttpServletRequest request);

    boolean changeScore(ScoreIncreaseDTO scoreChangeDTO, String uAccount, int changeType);
}
